import { setupVab } from '~/library'
import App from './App.vue'
import { setupI18n } from '/@/i18n'
import { setupRouter } from '/@/router'
import { setupStore } from '/@/store'
import { useUserStore } from '/@/store/modules/user'

const app = createApp(App)

setupVab(app)
setupI18n(app)
setupStore(app)
setupRouter(app)

// 然后再使用 store
const userStore = useUserStore()
await userStore.initLanguage()

app.mount('#app')
